﻿@model Inspinia_MVC5.Models.Borrow

@{
    ViewBag.Title = "图书归还";
}

<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-sm-4">
        <h2>办理图书归还</h2>
        <ol class="breadcrumb">
            <li>
                @Html.ActionLink("返回", "Index")
            </li>
            <li class="active">
                <strong>图书归还业务</strong>
            </li>
        </ol>
    </div>
</div>




<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>归还图书</h5>
                </div>
                <div class="ibox-content">


                    <dl class="dl-horizontal">
                        @{
                            if (ViewBag.YuQi != null)
                            {
                                <dt>
                                    逾期警示
                                </dt>
                                <dd style="color:red;">
                                    用户已逾期 @ViewBag.YuQi 天，需支付滞纳金 @Model.OverDue 元。
                                </dd>
                            }
                            else
                            {
                                <dt>
                                    逾期警示
                                </dt>
                                <dd>
                                    用户未逾期，无需支付滞纳金。
                                </dd>

                            }
                        }

                        <dt>
                            @Html.DisplayNameFor(model => model.Book.BookName)
                        </dt>

                        <dd>
                            @Html.DisplayFor(model => model.Book.BookName)
                        </dd>

                        

                        <dt>
                            @{
                                if (Model.Role == 0)
                                {
                                    <span>学生姓名</span>
                                }
                                else
                                {
                                    <span>教师姓名</span>

                                }
                            }
                        </dt>

                        <dd>
                            @{
                                if (Model.Role == 0)
                                {
                                    <span>@Model.Student.StuName</span>
                                }
                                else
                                {
                        <span>@Model.Teacher.TeaName</span>

                                }
                            }
                        </dd>

                        <dt>
                            @Html.DisplayNameFor(model => model.Role)
                        </dt>

                        <dd>
                            @{
                                if (Model.Role == 0)
                                {
                                    <span>学生</span>
                                }
                                else
                                {
                                    <span>教师</span>

                                }
                            }
                        </dd>

                        <dt>
                            @Html.DisplayNameFor(model => model.Status)
                        </dt>

                        <dd>
                            @{
                                if (Model.Status == 1)
                                {
                                    <span>已借阅</span>
                                }
                                else if (Model.Status == 2)
                                {
                                    <span>已续借</span>

                                }
                            }
                        </dd>

                        <dt>
                            @Html.DisplayNameFor(model => model.JieYueDate)
                        </dt>

                        <dd>
                            @Html.DisplayFor(model => model.JieYueDate)
                        </dd>

                        <dt>
                            @Html.DisplayNameFor(model => model.YingHuanDate)
                        </dt>

                        <dd>
                            @Html.DisplayFor(model => model.YingHuanDate)
                        </dd>

                        <dt>
                            @Html.DisplayNameFor(model => model.ReturnDate)
                        </dt>

                        <dd>
                            @Html.DisplayFor(model => model.ReturnDate)
                        </dd>

                        <dt>
                            @Html.DisplayNameFor(model => model.OverDue)
                        </dt>

                        <dd>
                            @Html.DisplayFor(model => model.OverDue)
                        </dd>

                        <dt>
                            @Html.DisplayNameFor(model => model.XuJieDate)
                        </dt>

                        <dd>
                            @Html.DisplayFor(model => model.XuJieDate)
                        </dd>

                    </dl>
                    @using (Html.BeginForm("Back","Borrows",FormMethod.Post,new {@class="form-inline" }))
                    {
                        <input type="hidden" name="id" value="@Model.ID" />
                        <input type="submit" class="btn btn-primary" value="确认还书" />
                        @Html.ActionLink("返回列表", "Index", new {status=2 }, new { @class = "btn btn-primary" })

                    }
                    @*@Html.ActionLink("Back to List", "Index", null, new { @class = "btn btn-white" })*@


                    @*@Html.ActionLink("确认续借", "Renew", new { id = Model.ID }, new { @class = "btn btn-primary" })
                        @Html.ActionLink("Back to List", "Index", null, new { @class = "btn btn-white" })*@

                </div>
            </div>
        </div>
    </div>
</div>













